<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Logout extends CI_Controller {

	public function __construct(){
		parent::__construct();
	}

	public function index() {
		$this -> logout();
	}

	public function logout() {
		$this->session->sess_destroy();
		$url = base_url().'trang-chu';
		header("Location: $url");
		exit();
	}
}